package com.engine4cloud.tdf.supervision.convert;

import com.engine4cloud.tdf.supervision.dto.create.RcglDetachedCreateDTO;
import com.engine4cloud.tdf.supervision.dto.result.RcglDetachedResultDTO;
import com.engine4cloud.tdf.supervision.dto.update.RcglDetachedUpdateDTO;
import com.engine4cloud.tdf.supervision.entity.RcglDetachedEntity;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface RcglDetachedConvert {

    RcglDetachedConvert INSTANCE = Mappers.getMapper(RcglDetachedConvert.class);

    RcglDetachedEntity create(RcglDetachedCreateDTO s, Long tenantId);

    RcglDetachedEntity update(RcglDetachedUpdateDTO s);

    RcglDetachedResultDTO convert(RcglDetachedEntity s);
}
